package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.AnalyseRepliesMapper;
import com.ruoyi.system.domain.AnalyseReplies;
import com.ruoyi.system.service.IAnalyseRepliesService;

/**
 * 回复Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-09-02
 */
@Service
public class AnalyseRepliesServiceImpl implements IAnalyseRepliesService 
{
    @Autowired
    private AnalyseRepliesMapper analyseRepliesMapper;

    /**
     * 查询回复
     * 
     * @param id 回复主键
     * @return 回复
     */
    @Override
    public AnalyseReplies selectAnalyseRepliesById(Long id)
    {
        return analyseRepliesMapper.selectAnalyseRepliesById(id);
    }

    /**
     * 查询回复列表
     * 
     * @param analyseReplies 回复
     * @return 回复
     */
    @Override
    public List<AnalyseReplies> selectAnalyseRepliesList(AnalyseReplies analyseReplies)
    {
        return analyseRepliesMapper.selectAnalyseRepliesList(analyseReplies);
    }

    /**
     * 新增回复
     * 
     * @param analyseReplies 回复
     * @return 结果
     */
    @Override
    public int insertAnalyseReplies(AnalyseReplies analyseReplies)
    {
        return analyseRepliesMapper.insertAnalyseReplies(analyseReplies);
    }

    /**
     * 修改回复
     * 
     * @param analyseReplies 回复
     * @return 结果
     */
    @Override
    public int updateAnalyseReplies(AnalyseReplies analyseReplies)
    {
        return analyseRepliesMapper.updateAnalyseReplies(analyseReplies);
    }

    /**
     * 批量删除回复
     * 
     * @param ids 需要删除的回复主键
     * @return 结果
     */
    @Override
    public int deleteAnalyseRepliesByIds(Long[] ids)
    {
        return analyseRepliesMapper.deleteAnalyseRepliesByIds(ids);
    }

    /**
     * 删除回复信息
     * 
     * @param id 回复主键
     * @return 结果
     */
    @Override
    public int deleteAnalyseRepliesById(Long id)
    {
        return analyseRepliesMapper.deleteAnalyseRepliesById(id);
    }
}
